package com.zhkc.wisdom.common.base.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {
    token_null_error(11011, "Token无效"),
    invalid_error(11012, "Token无效"),
    be_overdue_error(11013, "登录已过期"),
    system_error(1000, "系统异常"),

    /**
     * 认证鉴权相关
     */
    login_fail_error(7001, "用户登录失败"),
    login_fail_lock_error(7002, "账号或密码错误，再次失败{}次后账号将被锁定！"),
    login_lock_error(7003, "您的账号已被锁定！请{}分钟后重试！"),
    user_not_login_error(7004, "用户未登录"),
    user_lock_error(7005, "用户被锁定"),
    verification_code_invalid(7006, "验证码过期"),
    verification_code_error(7007, "验证码错误"),

    /**
     * 业务相关
     */
    code_already_exists_error(9001, "编码已存在");
    private final Integer errorCode;
    private final String msg;

}
